home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group00b.txt
/
000086_icon-group-sender_Mon Oct 23 08:17:23 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-01-03
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id e9NFCxh18286
for icon-group-addresses; Mon, 23 Oct 2000 08:13:00 -0700 (MST)
Message-Id: <200010231513.e9NFCxh18286@baskerville.CS.Arizona.EDU>
From: symbiot@my-deja.com
X-Newsgroups: comp.lang.icon
Subject: How to "declare" a string?
Date: Sat, 21 Oct 2000 19:42:20 GMT
X-Article-Creation-Date: Sat Oct 21 19:42:20 2000 GMT
X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I)
X-Http-Proxy: 1.0 x73.deja.com:80 (Squid/1.1.22) for client 209.217.195.15
X-MyDeja-Info: XMYDJUIDsymbiot
To: icon-group@cs.arizona.edu
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 976
Greetings:
Another question that "should" be simple....but I can't seem to figure
it out.
I have the statement....
UPPER[index] := &ucase[find(data[index],&lcase)]
....which is giving an error:
Traceback:
main()
{(variable = &null)[1]} from line 8 in noname.icn
best I can tell, it is choking because UPPER has not been "declared".
But I can't find anywhere how to "declare" a string. In fact, all the
references I find talk about how ICON doesn't NEED "declarations" in the
traditional sense of a programming language. Soooo...uhhh....???
As a secondary question, this is part of a program to converst a string
to all uppercase. Right now I'm doing in a WHILE...DO loop. But
something tells me there's amcuh more efficient way to do it (with EVERY
perhaps?) Any suggestions?
Thanks!!
--
"Wife who put husband in doghouse, soon find him in cathouse."
-- Wisdom of the Tao
Sent via Deja.com http://www.deja.com/
Before you buy.